package org.ru.mse10.cvis.entity.cv.custom.provider;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.ru.mse10.cvis.entity.misc.Identity;

/**
 * The Class WSParam.
 */
@Entity
@Table(name = "ws_param")
public class WSParam extends Identity {

	/** The param name. */
	private String paramName;

	/** The param value. */
	private String paramValue;

	/** The provider. */
	private WSCustomFieldValueProvider provider;

	/** The position. */
	private Integer position;

	/**
	 * Gets the param name.
	 * 
	 * @return the param name
	 */
	public String getParamName() {
		return paramName;
	}

	/**
	 * Sets the param name.
	 * 
	 * @param paramName
	 *            the new param name
	 */
	public void setParamName(String paramName) {
		this.paramName = paramName;
	}

	/**
	 * Gets the param value.
	 * 
	 * @return the param value
	 */
	public String getParamValue() {
		return paramValue;
	}

	/**
	 * Sets the param value.
	 * 
	 * @param paramValue
	 *            the new param value
	 */
	public void setParamValue(String paramValue) {
		this.paramValue = paramValue;
	}

	/**
	 * Gets the provider.
	 * 
	 * @return the provider
	 */
	@ManyToOne
	public WSCustomFieldValueProvider getProvider() {
		return provider;
	}

	/**
	 * Sets the provider.
	 * 
	 * @param provider
	 *            the new provider
	 */
	public void setProvider(WSCustomFieldValueProvider provider) {
		this.provider = provider;
	}

	/**
	 * Gets the position.
	 * 
	 * @return the position
	 */
	public Integer getPosition() {
		return position;
	}

	/**
	 * Sets the position.
	 * 
	 * @param position
	 *            the new position
	 */
	public void setPosition(Integer position) {
		this.position = position;
	}

}
